package ch08;public class Example8_13 {
	public static void main(String args[]) {
		String cost = "市话76.8,长途167.38,短信12.68";
		double priceSum = GetPrice.givePriceSum(cost);
		System.out.printf("%s\n总价：%.2f元\n",cost,priceSum);
		cost = "牛奶:8.5元,香蕉3.6元,酱油2.8元";
		priceSum = GetPrice.givePriceSum(cost);
		System.out.printf("%s\n总价：%.2f元\n",cost,priceSum);
	}
}
			
